<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Pagefile
 *
 * @ORM\Table(name="PageFile")
 * @ORM\Entity
 */
class Pagefile
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var integer $ordernumber
     *
     * @ORM\Column(name="ordernumber", type="integer", nullable=false)
     */
    private $ordernumber;

    /**
     * @var File
     *
     * @ORM\ManyToOne(targetEntity="File")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="file_id", referencedColumnName="id")
     * })
     */
    private $file;

    /**
     * @var Page
     *
     * @ORM\ManyToOne(targetEntity="Page")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="page_id", referencedColumnName="id")
     * })
     */
    private $page;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set ordernumber
     *
     * @param integer $ordernumber
     */
    public function setOrdernumber($ordernumber)
    {
        $this->ordernumber = $ordernumber;
    }

    /**
     * Get ordernumber
     *
     * @return integer 
     */
    public function getOrdernumber()
    {
        return $this->ordernumber;
    }

    /**
     * Set file
     *
     * @param Luka\StoreBundle\Entity\File $file
     */
    public function setFile(\Luka\StoreBundle\Entity\File $file)
    {
        $this->file = $file;
    }

    /**
     * Get file
     *
     * @return Luka\StoreBundle\Entity\File 
     */
    public function getFile()
    {
        return $this->file;
    }

    /**
     * Set page
     *
     * @param Luka\StoreBundle\Entity\Page $page
     */
    public function setPage(\Luka\StoreBundle\Entity\Page $page)
    {
        $this->page = $page;
    }

    /**
     * Get page
     *
     * @return Luka\StoreBundle\Entity\Page 
     */
    public function getPage()
    {
        return $this->page;
    }
}